package com.macro.mall.portal.service.impl;

import com.macro.mall.model.UmsStore;
import com.macro.mall.portal.dao.PortalStoreDao;
import com.macro.mall.portal.service.PortalStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class PortalStoreServiceImpl implements PortalStoreService {
    @Value("${distance.val}")
    private Double distance;
    @Autowired
    private PortalStoreDao portalStoreDao;
    @Override
    public UmsStore getNearbyStore(Double lat, Double lon) {
        return this.portalStoreDao.getNearbyStore(lat, lon,this.distance);
    }
}
